#ifndef DATABASECONNECTION_H
#define DATABASECONNECTION_H

#include <QObject>
class QSqlDatabase;
class QSqlQuery;

class DatabaseConnection : public QObject
{
Q_OBJECT
public:
    explicit DatabaseConnection(QObject *parent = 0);
    DatabaseConnection(QString dbFile,QObject *parent=0);
    QSqlQuery* getQuery();
    bool authUser(QString username,QString password);


signals:

public slots:
private :
        QString databaseFile;
        QSqlDatabase getDatabase();


};

#endif // DATABASECONNECTION_H
